package org.loneranger.p4_inferred_construction_method;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * bean的生命周期：推断构造方法
 */
public class IcmTest {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext =
                new AnnotationConfigApplicationContext(IcmConfig.class);
        IcmService icmService = applicationContext.getBean("icmService", IcmService.class);

    }
}
